package org.pulloid;

import java.io.IOException;

import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;


public class RootContext<T> extends ElementContext<T> {
	
	
	
	public RootContext() {
		super(null, null);
	}


	@Override
	ElementContext<T> position(XmlPullParser p) throws XmlPullParserException, IOException {
		while(!ParserUtil.isStartDocument(p))
			p.nextTag();
		return this;
	}

}
